package com.hainan.bike.common.db;

import java.sql.Connection;

import org.apache.log4j.Logger;
import java.sql.DriverManager;

/**
<p>
	提供数据库连接。
</p>
@author huang
@version 1.0
 */
public class DbConnectionProvider
{
   private static Logger logger= Logger.getLogger(DbConnectionProvider.class);
   
   public static Connection getConnection(String dbID) 
   {
	   try{
		   return DriverManager.getConnection(dbID);
	   }catch(Exception e){
		   logger.error("取数据库连接出错,dbID="+dbID,e);
	   }
	   
	   return null;
   }
}
